<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${certificateNews.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">证书名称：</label>
                            <div class="col-sm-8">
                                <select id="profileId" name="profileId" class="form-control">
                                    <option value="">请选择证书</option>
                                    <option th:each="item : ${certificateProfile}" th:selected="${certificateNews.profileId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
							</div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">证书等级</label>
                            <div class="col-sm-8">
                                <input id="hiddenId2" name="profileId" th:value="${certificateNews.grade}" type="hidden">
                                <select id="grade" name="grade" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">高级</option>
                                    <option value="1">中级</option>
                                    <option value="2">初级</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">介绍：</label>
                            <div class="col-sm-8">
                                <textarea id="introduce" maxlength="1000" style="height:300px" name="introduce" th:text="${certificateNews.introduce}"
                                          class="form-control"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">相关专业：</label>
                            <div class="col-sm-8">
                                <textarea name="relatedMajors" class="form-control"  th:text="${certificateNews.relatedMajors}" placeholder="请输入相关专业"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">考试总费用：</label>
                            <div class="col-sm-8">
                                <input id="examFee" name="examFee" th:value="${certificateNews.examFee}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">证书模板图片：</label>
                            <div class="col-sm-8">
                                <!--<input id="certificateImg" name="certificateImg"-->
                                       <!--th:value="${certificateNews.certificateImg}" class="form-control" type="text">-->
                                <img id="img" th:src="${certificateNews.certificateImg}" style="width:300px;display:block;">
                                <input type="hidden" id="certificateImg" name="certificateImg" th:value="${certificateNews.certificateImg}">
                                <button type="button" class="btn btn-success" id="btnUpload" style="margin-top: 10px;">
                                    <i class="fa fa-cloud"></i>上传证书模板图片
                                </button>
                            </div>
                        </div>
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">状态：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <input id="hiddenId3" name="profileId" th:value="${certificateNews.state}" type="hidden">-->
<!--                                <select id="state" name="state" class="form-control">-->
<!--                                    <option value="">请选择</option>-->
<!--                                    <option value="0">待审核</option>-->
<!--                                    <option value="1">已通过</option>-->
<!--                                    <option value="2">未通过</option>-->
<!--                                    <option value="3">已停用</option>-->
<!--                                    <option value="9">已删除</option>-->
<!--                                </select>-->
<!--                            </div>-->
<!--                        </div>-->
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/certificateNews/edit.js">
</script>
</body>
</html>
